package com.product.to;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(title = "修改订单To")
public class UpdateOrderTo {
    @NotNull(message = "订单id不能为空")
    @Schema(title = "订单id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long orderId;

    @Schema(title = "订单状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String state;

    @Schema(title = "订单描述", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String description;

    @Schema(title = "客户名字", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String customerName;
}
